import request from '@/utils/request.js'

export const getMaintainAdList = (params) => {
  return request({
    url: '/device/maintain',
    method: 'get',
    params
  })
}

export const addMaintainAdList = (data) => {
  return request({
    url: '/device/maintain',
    method: 'post',
    data
  })
}

export const getMaintainAdInfo = (id) => {
  return request({
    url: '/device/maintain/' + id,
    method: 'get',
  })
}

export const editMaintainAdList = (data) => {
  return request({
    url: '/device/maintain/' + data.id,
    method: 'put',
    data
  })
}

export const delMaintainAdList = (id) => {
  return request({
    url: '/device/maintain/' + id,
    method: 'delete',
  })
}
